package com.mtf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: mtf_rocketmq_log
 * @Author: jeecg-boot
 * @Date:   2024-01-19
 * @Version: V1.0
 */
@Data
@TableName("mtf_rocketmq_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mtf_rocketmq_log对象", description="mtf_rocketmq_log")
public class MtfRocketmqLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;
	/**消息标识*/
    @ApiModelProperty(value = "消息标识")
    private String msgId;
	/**业务类型*/
    @ApiModelProperty(value = "业务类型")
    private String businessType;
	/**消息体*/
    @ApiModelProperty(value = "消息体")
    private String messageBody;
	/**消息发送时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "消息发送时间")
    private Date sendTime;
    /**消息状态 选项 0 表示消费成功；1 表示消费中*/
    @ApiModelProperty(value = "消息状态")
    private Integer msgStatus;
}
